package com.ecommerce.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * 订单服务启动类
 * 
 * @author ecommerce
 * @since 1.0.0
 */
@SpringBootApplication
@EnableJpaRepositories(basePackages = {"com.ecommerce.order.repository"})
@EntityScan(basePackages = "com.ecommerce.order.entity")
@ComponentScan(basePackages = {"com.ecommerce.order", "com.ecommerce.product"})
@EnableJpaAuditing
public class EcommerceOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(EcommerceOrderApplication.class, args);
    }
}